package com.mp.approvalreq.entity;

import java.util.Objects;

/**
 * Created by liuqi on 2018/9/4.
 */
public class AnnualLeaveRequest {
	
	private Integer requestId;
	private Integer finished;
	private String createTime;
	private String durationTime;
	private String startTime;
	private String endTime;
	
	public AnnualLeaveRequest() {
	}
	
	public Integer getRequestId() {
		return requestId;
	}
	
	public void setRequestId(Integer requestId) {
		this.requestId = requestId;
	}
	
	public Integer getFinished() {
		return finished;
	}
	
	public void setFinished(Integer finished) {
		this.finished = finished;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getDurationTime() {
		return durationTime;
	}
	
	public void setDurationTime(String durationTime) {
		this.durationTime = durationTime;
	}
	
	public String getStartTime() {
		return startTime;
	}
	
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	
	public String getEndTime() {
		return endTime;
	}
	
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		AnnualLeaveRequest that = (AnnualLeaveRequest) o;
		return Objects.equals(requestId, that.requestId) &&
				Objects.equals(finished, that.finished) &&
				Objects.equals(createTime, that.createTime) &&
				Objects.equals(durationTime, that.durationTime) &&
				Objects.equals(startTime, that.startTime) &&
				Objects.equals(endTime, that.endTime);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(requestId, finished, createTime, durationTime, startTime, endTime);
	}
	
	@Override
	public String toString() {
		return "{" +
				"requestId=" + requestId +
				", finished=" + finished +
				", createTime='" + createTime + '\'' +
				", durationTime='" + durationTime + '\'' +
				", startTime='" + startTime + '\'' +
				", endTime='" + endTime + '\'' +
				'}';
	}
}
